#if !defined(AFX_PAGEDIALOG_H__C036345B_E84E_4800_BFE4_4604F2A7A1F0__INCLUDED_)
#define AFX_PAGEDIALOG_H__C036345B_E84E_4800_BFE4_4604F2A7A1F0__INCLUDED_

class CPageDialog : public CDialog
{
public:
	CPageDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
	virtual ~CPageDialog();

	BOOL			Create(UINT nIDTemplate, CWnd* pParentWnd, int nIndex);

	int				GetPageIndex(){ASSERT(m_nPangeIndex != -1); return m_nPangeIndex;}

	virtual BOOL	SaveData(CString strMRN)			{return TRUE;}
	virtual BOOL	ShowTableData(CString strMRN)		{return TRUE;}
	virtual BOOL	ClearData()							{return TRUE;}

	virtual BOOL	EnableInputControls(BOOL bEnable)	{m_bControlsEnable = bEnable; return TRUE;}
	virtual BOOL	IsControlsEnable()					{return m_bControlsEnable;}

	virtual BOOL	Prepare()							{return TRUE;}
	virtual BOOL	ClearUp()							{return TRUE;}

protected:
	BOOL			m_bControlsEnable;

private:
	int				m_nPangeIndex;
};

#endif // !defined(AFX_PAGEDIALOG_H__C036345B_E84E_4800_BFE4_4604F2A7A1F0__INCLUDED_)
